package com.forum.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.forum.pojo.ForumArticle;
import com.forum.pojo.StudentInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.forum.pojo.vo.ArticleModify;
import com.forum.pojo.vo.SearchStudentVo;
import com.forum.pojo.vo.StudentVo;
import com.forum.result.Result;

import java.util.List;

/**
 *
 */
public interface StudentInfoService extends IService<StudentInfo> {

    Result verify(String username, String password);

    Result getPersonInfo(Long userId);

    Result<Page> getStudentsBySelector(SearchStudentVo searchStudentVo, Long currentPage, Long limit);

    int updateIsAdmin(Long studentId, Integer isAdmin);

    int updateIsForbidden(Long studentId, Integer isForbidden);

    int insertStudent(StudentVo studentVo);

    void lessCount(Long informedUserId);

    List<ArticleModify> getPersonArticleById(Long userId);
}
